package com.hyy.blogtest.service;

import com.hyy.blogtest.common.pojo.request.AddBlogRequest;
import com.hyy.blogtest.common.pojo.request.UpdateBlogRequest;
import com.hyy.blogtest.common.pojo.response.BlogInfoResponse;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(@NotNull Integer blogId);

    Boolean addBlog(AddBlogRequest updateBlogRequest);

    Boolean deleteBlog(@NotNull Integer blogId);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);
}
